//
//  StoreDetailBottomView.h
//  BaseProject
//
//  Created by 王洋 on 2020/7/2.
//  Copyright © 2020 王洋. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, StoreDetailBottomUIType) {
    //档期
    StoreDetailBottomUIType_schedule,
    //预约
    StoreDetailBottomUIType_subscribe,
};

typedef NS_ENUM(NSInteger, StoreDetailBottomActionType) {
    //im
    StoreDetailBottomActionType_im,
    //打电话
    StoreDetailBottomActionType_phone,
    //评价
    StoreDetailBottomActionType_evaluate,
    //预约
    StoreDetailBottomActionType_handle,
    //档期
    StoreDetailBottomActionType_schedule,
};

@interface StoreDetailBottomView : UIView

@property (weak, nonatomic) IBOutlet UIView *imControl;

@property (weak, nonatomic) IBOutlet UIView *phoneControl;

@property (weak, nonatomic) IBOutlet UIView *evaluateControl;

@property (weak, nonatomic) IBOutlet UIButton *handleBtn;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *handleBtnW;


@property (weak, nonatomic) IBOutlet UIButton *scheduleBtn;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *scheduleBtnW;


//@property (weak, nonatomic) IBOutlet NSLayoutConstraint *btnDistanceConstrain;

@property (nonatomic, copy) void(^StoreDetailBottomBlock)(StoreDetailBottomActionType type);

- (void)refreshWithType:(StoreDetailBottomUIType)type;

@end

NS_ASSUME_NONNULL_END
